<?php  $this->load->view('admin/comment/link_bar');?>
		<form method="post" action="<?php echo site_url('admin/comment/delete')?>" class="form">
		<div class="box_function">
		<table width="747" border="0" cellpadding="0" cellspacing="0" class="listproduct" id="listproduct">
				<tr>
					<td class="tilte_list_pro">
						<input name="checkme" class="noborder" onclick="checkDelBoxes(this.form, 'categoryBox[]', this.checked)" type="checkbox">
					</td>
					<td class="tilte_list_pro">
						ID<br>

					</td>
					<td class="tilte_list_pro">
						Content
					</td>
					<td class="tilte_list_pro">
						From
					</td>
					<td class="tilte_list_pro">
						Displayed
					</th>
					<td class="tilte_list_pro" style="width: 79px;">
						Actions
					</td>
				</tr>
				<?php
				for($i = 0; $i < count($rows); $i++){
					$id = $rows[$i]['id'];
					
					$from = '';
					$from = !empty($rows[$i]['fullname']) ? $rows[$i]['fullname'] : '';
					$from .= !empty($rows[$i]['address']) ? '<br>Add:' . $rows[$i]['address'] : '';
					$from .= !empty($rows[$i]['phone']) ? '<br>Phone:' . $rows[$i]['phone'] : '';
					$from .= !empty($rows[$i]['email']) ? '<br>Email:' . $rows[$i]['email'] : '';
					
					$content = word_limiter($rows[$i]['content'], 20);
					
					$enlable = $rows[$i]['active'] == 1 ? 'checked.jpg' : 'nocheck.jpg';
					//$items .= eval ($this->loadTemplate('admin/news/news_item.tpl'));
                    if($i % 2 == 0) $css_class = 'row1';
                            else $css_class = 'row2';
				?>
				<tr onMouseOver="" class="<?php echo $css_class ?>">
					<td class="product center">
						<input name="categoryBox[]" value="<?php echo $id?> " class="noborder" type="checkbox"></td>
					<td class="product center" onclick="document.location = '#'">
					<?php echo $id?> 
					</td>
				
					<td class="product" onclick="document.location = '#'">
					<?php echo $content?> 
					</td>
					<td class="product" onclick="document.location = '#'">
					<?php echo $from ?> 	
					</td>
					<td class="product center" onclick="document.location = '#'">
						<img src="<?php echo base_url().'images/admin/'.$enlable?>">
					</td>
					<td class="product center">
						<a href="<?php echo site_url('admin/comment/edit/'.$id)?>">
							<img src="<?php echo base_url()?>images/admin/edit.gif" alt="Edit" title="Edit" border="0">
						</a>
						
						<a href="<?php echo site_url('admin/comment/delete/'.$id)?>" onclick="return confirm('Delete item #<?php echo $id?> ?');">
						<img src="<?php echo base_url()?>images/admin/delete.gif" alt="Delete" title="Delete" border="0">
						</a>
					</td>
				</tr>
				<?php
				}
				?>
	<tr>
		<td colspan="9">
			<p>
			<input class="button" name="submitDelcategory" value="Delete selection" onclick="return confirm('Delete selected items?');" type="submit">
			</p>
			
		</td>
	</tr>
</table>
</div>
		</form>
		<div>
		<?php echo $this->pagination->create_links();?>
		</div>